<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!--用户进入店铺-->
<body>
<table >
    <thead>
    <th>图片</th>
    <th>商品</th>
    <th>价格</th>
    <th>库存</th>
    <th>是否加入购物车</th>
    </thead>
    <tbody>
    <tr th:each="good : ${goods}">
        <td> <img style="width:700px;height:500px"
                th:src="@{'/photo/'+${good.avatar}}">
        </td>
        <td th:text="${good.goodsName}"></td>
        <td th:text="${good.goodsPrice}"></td>
        <td th:text="${good.number}"></td>
        <td>
            <a  th:href="@{'/addCart/'+${good.goodsId}}">加入购物车</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>